<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8"/>
    <title>网站后台管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="${e.res('/css/bootstrap.min.css')}">
    <link rel="stylesheet" href="${e.res('/css/font-awesome.min.css')}">
    <link rel="stylesheet" href="${e.res('/css/ace.min.css')}">
    <link rel="stylesheet" href="${e.res('/css/works_upload.css')}"/>
</head>
<body>
<#include "/pages/moudle/BackHead.ftl">
<div class="main-container" id="main-container">
    <div class="main-container-inner">
    <#include "/pages/moudle/BackSideBar.ftl">
    <@backSideBar chooseTag = '1' />
        <!--页面主体内容-->
        <div class="main-content">
            <!-- 面包屑 -->
            <div class="breadcrumbs" id="breadcrumbs">

                <ul class="breadcrumb">
                    <li>
                        <i class="icon-home home-icon"></i>
                        <a href="#">首页</a>
                    </li>

                    <li>
                        <a href="/works/list">作品管理</a>
                    </li>
                    <li class="active">作品新增</li>
                </ul>
            </div>
            <!-- 面包屑 -->

            <div class="page-content">
                <div class="page-header">
                    <h1>作品新增
                        <small>
                            <i class="icon-double-angle-right"></i>上传新的作品
                        </small>
                    </h1>
                </div>
                <!-- /.page-header -->

                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form id="worksAddForm" class="form-horizontal" role="form" action="/works/addSubmit"
                              method="post">
                            <input type="hidden" id="image" name="image" value=""/>
                            <input type="hidden" id="uploadFlag" name="uploadFlag" value=""/>
                            <input type="hidden" id="fileName" name="fileName" value=""/>

                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 名称： </label>

                                <div class="col-sm-9">
                                    <input type="text" id="worksName" name="worksName" placeholder="请输入您作品的名称"
                                           class="col-xs-10 col-sm-5"/>
                                    <font color='red'>*</font>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right"
                                       for="form-field-1">尺寸（宽）： </label>

                                <div class="col-sm-9">
                                    <input type="text" id="worksWidth" name="worksWidth" placeholder="请输入您作品的宽,单位：cm"
                                           class="col-xs-10 col-sm-5"/>
                                    <font color='red'>*</font>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right"
                                       for="form-field-1">尺寸（高）： </label>

                                <div class="col-sm-9">
                                    <input type="text" id="worksHeigh" name="worksHeigh" placeholder="请输入您作品的高,单位：cm"
                                           class="col-xs-10 col-sm-5"/>
                                    <font color='red'>*</font>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 钤印： </label>

                                <div class="col-sm-9">
                                    <input type="text" id="worksSeal" name="worksSeal" placeholder="请输入您作品的钤印"
                                           class="col-xs-10 col-sm-5"/>
                                    <font color='red'>*</font>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 款识： </label>

                                <div class="col-sm-9">
                                    <input type="text" id="worksSign" name="worksSign" placeholder="请输入您作品的款识"
                                           class="col-xs-10 col-sm-5"/>
                                    <font color='red'>*</font>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right" for="form-field-1">类型： </label>

                                <div class="col-sm-9">
                                    <select id="worksType" name="worksType" class="form-control" style="width:325px;">
                                    <#list resMap.worksTypeList as worksType>
                                        <option value=${worksType.para_code1}>${worksType.para_code2}</option>
                                    </#list>
                                    </select>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right" for="form-field-1">质地： </label>

                                <div class="col-sm-9">
                                    <select id="worksMaterial" name="worksMaterial" class="form-control"
                                            style="width:325px;">
                                    <#list resMap.worksMaterialList as worksMaterial>
                                        <option value=${worksMaterial.para_code1}>${worksMaterial.para_code2}</option>
                                    </#list>
                                    </select>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right" for="form-field-1">年代： </label>

                                <div class="col-sm-9">
                                    <select id="worksYears" name="worksYears" class="form-control" style="width:325px;">
                                    <#list resMap.worksYearsList as worksYears>
                                        <option value=${worksYears.para_code1}>${worksYears.para_code2}</option>
                                    </#list>
                                    </select>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right" for="form-field-1">形式： </label>

                                <div class="col-sm-9">
                                    <select id="worksForm" name="worksForm" class="form-control" style="width:325px;">
                                    <#list resMap.worksFormList as worksForm>
                                        <option value=${worksForm.para_code1}>${worksForm.para_code2}</option>
                                    </#list>
                                    </select>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right" for="form-field-1">描述： </label>

                                <div class="col-sm-9">
                                    <textarea class="form-control limited" id="worksDesc" name="worksDesc"
                                              maxlength="50"
                                              style="width:600px;height: 150px;"></textarea>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 图片： </label>

                                <div class="col-sm-9">
                                    <div class="uploadPlace">
                                        <div class="uploadImgFile left ownImg mr15">
                                            <span class="other"></span>

                                            <div class="firstState" upload="upload" id="upload">
                                                <i></i>

                                                <p>选择图片并上传</p>
                                            </div>
                                            <img id="idImg" src="" filename="" alt="" class="imgShow"
                                                 style="display: none;"/>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="space-4"></div>

                            <div class="clearfix form-actions">
                                <div class="center">
                                    <button id="worksAddSubmit" class="btn btn-info" type="button">
                                        <i class="icon-ok bigger-110"></i>保存
                                    </button>
                                    &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;
                                    <a href="/works/list" class="btn" type="reset">
                                        <i class="icon-undo bigger-110"></i>返回
                                    </a>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <!--页面主题内容结束-->
        </div>
    </div>
</div>
</body>
<script language="javascript" type="text/javascript" src="${e.res('/js/jquery-1.4.3.min.js')}"></script>
<script language="javascript" type="text/javascript" src="${e.res('/js/ajaxupload.js')}"></script>
<script language="javascript" type="text/javascript" src="${e.res('/js/jquery.base64.js')}"></script>
<script language="javascript" type="text/javascript" src="${e.res('/js/plupload.full.min.js')}"></script>
<script language="javascript" type="text/javascript" src="${e.res('/js/works_upload.js')}"></script>
<script language="javascript" type="text/javascript" src="${e.res('/js/back_works_add.js')}"></script>
<script language="javascript" type="text/javascript" src="${e.res('/js/errorHander.js')}"></script>
</html>